import {viteBundler} from '@vuepress/bundler-vite'
import {defaultTheme} from '@vuepress/theme-default'
import {defineUserConfig} from 'vuepress'

export default defineUserConfig({
    base: '/quick-start/',
    bundler: viteBundler(),
    title: '仓颉（Cangjie）入门指南',
    head: [
        ['link', {
            rel: "shortcut icon",
            type: "image/png",
            href: "https://cangjie-study.atomgit.net/quick-start/favicon.png"
        }],
    ],
    theme: defaultTheme({
        logo: '/logo.png',
        sidebar: [
            {
                text: '仓颉（Cangjie）',
                link: '/',
            },
            {
                text: '环境安装',
                prefix: '/install/',
                link: '/install/',
                children: [ // 子目录
                    {
                        text: 'MacOS安装',
                        link: 'install-macos'
                    }
                ]
            },
        ]
    })

})
